<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>ThinkPHP5.1 学习</title>
		<!-- Bootstrap CSS -->
		<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
        <!--表单验证bootstrapValidator CSS-->
		<link rel="stylesheet" type="text/css" href="https://cdn.staticfile.org/bootstrap-validator/0.5.3/css/bootstrapValidator.min.css">
        <!--动态表格bootstrap-table CSS-->
        <link rel="stylesheet" href="https://cdn.staticfile.org/bootstrap-table/1.12.1/bootstrap-table.min.css">
        <!--树形ztree CSS-->
		<link rel="stylesheet" href="https://cdn.staticfile.org/zTree.v3/3.5.33/css/zTreeStyle/zTreeStyle.min.css">
        <!--树形ztree主题 CSS-->
        <link rel="stylesheet" href="https://cdn.staticfile.org/zTree.v3/3.5.33/css/metroStyle/metroStyle.min.css">
        <!--树形表格 CSS-->
		<link rel="stylesheet" href="https://cdn.staticfile.org/jquery-treegrid/0.2.0/css/jquery.treegrid.min.css">
        <!--前端图表库-->
        <link rel="stylesheet" href="https://cdn.staticfile.org/chartist/0.11.0/chartist.min.css">

		<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
		<!--[if lt IE 9]>
		<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.2/html5shiv.min.js"></script>
		<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
		<![endif]-->
		<!-- jQuery -->
		<script src="https://cdn.staticfile.org/jquery/1.9.1/jquery.min.js"></script>
		<!-- Bootstrap JavaScript -->
		<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
		<!--表单验证bootstrapValidator js-->
        <script type="text/javascript" src="https://cdn.staticfile.org/bootstrap-validator/0.5.3/js/bootstrapValidator.min.js"></script>
        <!--动态表格bootstrap-table js-->
        <script type="text/javascript" src="https://cdn.staticfile.org/bootstrap-table/1.12.1/bootstrap-table.min.js"></script>
         <!--动态表格bootstrap-table 汉化 js-->
        <script type="text/javascript" src="https://cdn.staticfile.org/bootstrap-table/1.12.1/locale/bootstrap-table-zh-CN.min.js"></script>
        <!--树形ztree js-->
		<script type="text/javascript" src="https://cdn.staticfile.org/zTree.v3/3.5.33/js/jquery.ztree.all.js"></script>
        <!--树形表格 js-->
		<script type="text/javascript" src="https://cdn.staticfile.org/jquery-treegrid/0.2.0/js/jquery.treegrid.min.js"></script>
        <!--属性表格bootstrap js支持-->
        <script type="text/javascript" src="https://cdn.staticfile.org/jquery-treegrid/0.2.0/js/jquery.treegrid.bootstrap3.min.js"></script>
        <!--自定义属性表格 js（使其能够异步加载数据）-->
        <script type="text/javascript" src="/static/js/jquery.treegrid.extension.js"></script>
        <!--前端图表库js-->
        <script type="text/javascript" src="https://cdn.staticfile.org/chartist/0.11.0/chartist.min.js"></script>
        <!--echart js-->
        <script type="text/javascript" src="https://cdn.staticfile.org/echarts/4.1.0.rc2/echarts.min.js"></script>

        <!--自定义全局函数-->
		<script type="text/javascript">
            let wpgaci = {
                goUrl:function (url,mins) {
                    setTimeout(function(){window.location.href=url;},mins*1000);
                }
            };
		</script>
	</head>
	<body>
		<div class="container">
			<nav class="navbar navbar-default" role="navigation">
				<div class="container-fluid">
					<!-- Brand and toggle get grouped for better mobile display -->
					<div class="navbar-header">
						<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
						<span class="sr-only">Toggle navigation</span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						</button>
						<a class="navbar-brand" href="/">ThinkPHP5学习</a>
					</div>
					
					<!-- Collect the nav links, forms, and other content for toggling -->
					<div class="collapse navbar-collapse navbar-ex1-collapse">
						<ul class="nav navbar-nav">
                            <li><a href="{:url('/sys/index/index')}">后台</a></li>
						</ul>
						<ul class="nav navbar-nav navbar-right">
							{if session('loginUserId')}
							<li><a href="/sys/login/my_info">{:session('loginUser')->nick}【{:session('loginUser')
								->role_name}】</a></li>
							<li><a href="/sys/login/logout">退出</a></li>
							{else}
							<li><a href="/sys/login/login">登陆</a></li>
							{/if}
						</ul>
						</div><!-- /.navbar-collapse -->
					</div>
				</nav>
                {block name='hid'}
                    头部
                {/block}
				{block name='mid'}
				    中间的部分
				{/block}
                {block name='fid'}尾部{/block}
		</div>
	</body>
</html>